package tr.edu.metu.is550.isell.service;


import tr.edu.metu.is550.isell.domain.Message;
import tr.edu.metu.is550.isell.domain.Property;
import tr.edu.metu.is550.isell.rest.message.SearchPropertyMessage;
import tr.edu.metu.is550.isell.rest.message.SearchPropertyResultMessage;

import java.util.List;

public interface PropertyService {

    public Property addProperty(Property property);


    public void deleteProperty(Property property);


    public List<SearchPropertyResultMessage> searchProperty(SearchPropertyMessage searchPropertyMessage);


    void updateProperty(String username, Property newProperty);


    public Property getProperty(Long propertyId);

    public Message addComment(Long id, String username, String comment);
}
